{% extends "myapp/base.html" %}

{% block mainBlock %}
<center>
    {% comment %} 子模板填充 {% endcomment %}
    <h3>添加相册信息</h3>
    <form action="{% url 'insertPicture' %}" method="post" enctype="multipart/form-data">
    {% csrf_token %} 
        <table width="400">
            <tr>
                <td>标题：</td>
                <td><input type="text" name="title"/></td>
            </tr>
            <tr>
                <td>图片：</td>
                <td><input type="file" name="pic"/></td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <input type="submit" value="添加"/>
                    <input type="reset" value="重置"/>
                </td>
            </tr>
        </table>
    </form>
</center>
{% endblock %}